package com.jqh.jqhmusic;

public class TimeUtils {

    public static String formatDateTime(long mss) {
        String DateTimes = null;
        long hours = (mss % (60 * 60 * 24)) / (60 * 60);
        long minutes = (mss % (60 * 60)) / 60;
        long seconds = mss % 60;
        if (hours > 0) {
            DateTimes = hours + "时" + minutes + "钟"
                    + seconds + "秒";
        } else if (minutes > 0) {
            DateTimes = minutes + "钟"
                    + seconds + "秒";
        } else {
            DateTimes = seconds + "秒";
        }
        return DateTimes;
    }

}
